#pragma once
#include <vector>
#include <string>
#include "http_request.h"
#include "http_response.h"

class HttpController
{
public:
	virtual HttpResponse DoHttpGet(const HttpRequest& request) = 0;
	virtual HttpResponse DoHttpPost(const HttpRequest& request) = 0;
protected:
	const std::string FindMethodName4QStr(const HttpRequest& request);
	std::vector<std::string> FindMethodArgs4QStr(const HttpRequest& request);
};